package com.yami.shop.bean.param;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @author Yami
 */
@Data
public class RetailProdParam {
    /**
     * 零售单品id
     */
    @ApiModelProperty(value = "零售单品id")
    private Long retailProdId;
    /**
     * 单品条码
     */
    @ApiModelProperty(value = "单品条码")
    private String barCode;
    /**
     * 单品名称
     */
    @ApiModelProperty(value = "单品名称")
    private String name;
    /**
     * 单品主图
     */
    @JsonSerialize(using = ImgJsonSerializer.class)
    @ApiModelProperty(value = "单品主图")
    private String pic;
    /**
     * 单品规格
     */
    @ApiModelProperty(value = "单品规格")
    private String spec;
    /**
     * 单品成本
     */
    @ApiModelProperty(value = "单品成本")
    private Double costPrice = 0.0;
    /**
     * 单品库存
     */
    @ApiModelProperty(value = "单品库存")
    private Integer stocks;
    /**
     * 组合内数量
     */
    @ApiModelProperty(value = "组合内数量")
    private Integer retailNums;
    /**
     * 总计
     */
    @ApiModelProperty(value = "总计")
    private Double total;

}
